<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>修改会员信息</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<jsp:include page="header.jsp"/>

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminMember" class="list-group-item active">会员列表</a>
                <a href="${pageContext.request.contextPath }/adminMember?method=doSearch"
                   class="list-group-item">查询会员</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>会员管理</h1>
            </div>
            <form class="form-horizontal" role="form"
                  action="${pageContext.request.contextPath }/adminMember?method=modify" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员ID</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput6" type="text" name="id" value="${member.id}"
                               READONLY>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员账号</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput5" type="text" name="account"
                               value="${member.account}" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员姓名</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput" type="text" name="name" value="${member.name}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员Email</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput2" type="text" name="email" value="${member.email}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员手机号</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput3" type="text" name="phone" value="${member.phone}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员评价数</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput4" type="text" name="evaluationNum"
                               value="${evaluationNum}" READONLY>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员文章数</label>
                    <div class="col-sm-10">
                        <input class="form-control" id="focusedInput8" type="text" name="essayNum" value="${essayNum}"
                               READONLY>
                    </div>
                </div>

                <div style="margin:0 auto;width:200px;">
                    <div style="width:50%;padding:0;margin:0;float:left">
                        <button type="submit" class="btn btn-success">修改</button>
                    </div>
                    <button type="button" class="btn btn-danger"
                            onclick="location='${pageContext.request.contextPath }/adminMember'">取消
                    </button>
                </div>

            </form>
        </div>
    </div>
</div>

<jsp:include page="footer.jsp"/>

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>